package com.oozol.lieluyun.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(
   prefix = "config"
)
@Component
public class AppConfig {
   private String jenkinsServerURI;
   private String dockerServerURI;
   private String registryServerURI;

   public String getJenkinsServerURI() {
      return this.jenkinsServerURI;
   }

   public String getDockerServerURI() {
      return this.dockerServerURI;
   }

   public String getRegistryServerURI() {
      return this.registryServerURI;
   }

   public void setJenkinsServerURI(final String jenkinsServerURI) {
      this.jenkinsServerURI = jenkinsServerURI;
   }

   public void setDockerServerURI(final String dockerServerURI) {
      this.dockerServerURI = dockerServerURI;
   }

   public void setRegistryServerURI(final String registryServerURI) {
      this.registryServerURI = registryServerURI;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof AppConfig)) {
         return false;
      } else {
         AppConfig other = (AppConfig)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$jenkinsServerURI = this.getJenkinsServerURI();
            Object other$jenkinsServerURI = other.getJenkinsServerURI();
            if (this$jenkinsServerURI == null) {
               if (other$jenkinsServerURI != null) {
                  return false;
               }
            } else if (!this$jenkinsServerURI.equals(other$jenkinsServerURI)) {
               return false;
            }

            Object this$dockerServerURI = this.getDockerServerURI();
            Object other$dockerServerURI = other.getDockerServerURI();
            if (this$dockerServerURI == null) {
               if (other$dockerServerURI != null) {
                  return false;
               }
            } else if (!this$dockerServerURI.equals(other$dockerServerURI)) {
               return false;
            }

            Object this$registryServerURI = this.getRegistryServerURI();
            Object other$registryServerURI = other.getRegistryServerURI();
            if (this$registryServerURI == null) {
               if (other$registryServerURI != null) {
                  return false;
               }
            } else if (!this$registryServerURI.equals(other$registryServerURI)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof AppConfig;
   }

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $jenkinsServerURI = this.getJenkinsServerURI();
      result = result * 59 + ($jenkinsServerURI == null ? 43 : $jenkinsServerURI.hashCode());
      Object $dockerServerURI = this.getDockerServerURI();
      result = result * 59 + ($dockerServerURI == null ? 43 : $dockerServerURI.hashCode());
      Object $registryServerURI = this.getRegistryServerURI();
      result = result * 59 + ($registryServerURI == null ? 43 : $registryServerURI.hashCode());
      return result;
   }

   public String toString() {
      return "AppConfig(jenkinsServerURI=" + this.getJenkinsServerURI() + ", dockerServerURI=" + this.getDockerServerURI() + ", registryServerURI=" + this.getRegistryServerURI() + ")";
   }
}
